package soar.template.springboot.service.hello.configuration.mvc;

import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.servlet.ErrorPage;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpStatus;

@Configuration
public class MyEmbeddedServletContainerCustomizer
        implements EmbeddedServletContainerCustomizer
{

    @Override
    public void customize(ConfigurableEmbeddedServletContainer container)
    {
//        container.addErrorPages(new ErrorPage(HttpStatus.FORBIDDEN, "/error/403"),
//                new ErrorPage(HttpStatus.NOT_FOUND, "/error/404"));
    }

}
